package com.meida.app.provider.integration.authenticator.sms.event;

import com.meida.app.provider.integration.model.IntegrationParams;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * 短信认证之前的事件，可以监听事件进行用户手机号自动注册
 *
 * @author zyf*/
@Getter
public class SmsAuthenticateBeforeEvent extends ApplicationEvent {
    //注册账户名
    private String accountName;
    private String password;
    private String userType;

    public SmsAuthenticateBeforeEvent(Object source, String accountName, String password) {
        super(source);
        IntegrationParams integrationParams = (IntegrationParams) source;
        this.accountName = accountName;
        this.password = password;
        this.userType = integrationParams.getUserType();
    }
}
